package com.movie.dao;

import com.movie.beans.Rating;

import java.util.List;

public interface RateDAO {
    List<Rating> selectRatingByMovieId(Long movieId);

    Double selectRatingAvgByMovieId(Long movieId);

    int insert(Rating rating);

    List<Rating> selectRatingList(Rating rating);

    int deleteRating(Rating rating);

    Rating selectRating(Rating rating);
}
